home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / moonstonemadness.swf / scripts / __Packages / TrailSmoke.as < prev   
Text File  |  2007-09-27  |  591b  |  25 lines

  1. class TrailSmoke extends SideScroller.StaticObject
  2. {
  3.    function TrailSmoke(__mcRef, __oLayer)
  4.    {
  5.       super(__mcRef,__oLayer);
  6.       this.bObjectBlock = false;
  7.       this.bObjectSpecial = false;
  8.       this.setState("Out");
  9.       this.__get__ParentLayer().doAddListener(this);
  10.    }
  11.    function doDestroy()
  12.    {
  13.       this.__get__ParentLayer().doRemoveListener(this);
  14.       super.doDestroy();
  15.    }
  16.    function doOut()
  17.    {
  18.       if(this.isStateComplete())
  19.       {
  20.          this.__get__ParentLayer().doRemoveListener(this);
  21.          this.doDestroy();
  22.       }
  23.    }
  24. }
  25.